<%@ page contentType="text/html; charset=UTF-8" session="true"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<spring:theme code="mobile.custom.css.file" var="mobileCss" text="" />
<!DOCTYPE html>
<html>
<head>
<title>西安庆华单点登录认证系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="icon" href="<c:url value="/favicon.ico" />"	type="image/x-icon" />
<script type="text/javascript">
	window.onload = function() {
		document.getElementById("username").focus();
		if (document.attachEvent) {

			document.attachEvent("onkeydown", function() {
				enterSubmit();
			});
		} else {
            document.addEventListener("keydown",function(){
            	enterSubmit();

            });

     	}

	}
	function gotologin() {
		document.getElementById('fm1').submit();
	}
	function enterSubmit(src, e) {
		if (window.event)
			keyPressed = window.event.keyCode; // IE
		else
			keyPressed = e.which; // Firefox
		if (keyPressed == 13) {
			gotologin();
			return false;
		}
	}
</script>
</head>
<body>
	<div class="loginform">

		<form:form method="post" id="fm1" cssClass="fm-v clearfix"
			commandName="${commandName}" htmlEscape="true">

			<div class="box fl-panel">

				<div class="row fl-controls-left">
		

					
						<spring:message code="screen.welcome.label.netid.accesskey"
							var="userNameAccessKey" />
						<form:input
							cssStyle="ime-mode:disabled;color:black;font-weight:bolder;font-size:14px;width:250px;height:15px;margin-top:90px"
							id="username" tabindex="1" accesskey="${userNameAccessKey}"
							path="username" autocomplete="false" htmlEscape="true" />
					
				</div>
				<div class="row fl-controls-left">

					<spring:message code="screen.welcome.label.password.accesskey"
						var="passwordAccessKey" />
					<form:password
						cssStyle="ime-mode:disabled;color:black;font-size:14px;width:250px;height:15px;margin-top:15px;"
						id="password" tabindex="2" path="password"
						accesskey="${passwordAccessKey}" htmlEscape="true"
						autocomplete="off" />

				</div>

				<div>
					<a href="javascript:;"
						onclick=" gotologin();return false;" class="gotologin"><span>&nbsp;</span></a>
				</div>
				<div class="row btn-row">
					<input type="hidden" name="lt" value="${flowExecutionKey}" /> <input
						type="hidden" name="_eventId" value="submit" />

				</div>

			</div>
			<form:errors path="*" cssClass="errors" id="status" element="div" />
		</form:form>
	</div>
</body>
</html>
